home *** CD-ROM | disk | FTP | other *** search
- //***********************************************************************
- //
- // GdiDemo4.h
- //
- //***********************************************************************
-
- class CMyApp : public CWinApp
- {
- public:
- virtual BOOL InitInstance ();
- };
-
- class CMyView : public CScrollView
- {
- private:
- int m_cxChar;
- int m_cyChar;
-
- void ShowPenStyles (CDC*, int, int);
- void ShowPenWidths (CDC*, int, int);
- void ShowBrushStyles (CDC*, int, int);
-
- protected:
- virtual void OnDraw (CDC*);
-
- afx_msg int OnCreate (LPCREATESTRUCT);
- afx_msg void OnSize (UINT, int, int);
- afx_msg void OnKeyDown (UINT, UINT, UINT);
-
- DECLARE_MESSAGE_MAP ()
- };
-
- class CMainWindow : public CFrameWnd
- {
- private:
- CMyView* m_pMyView;
-
- public:
- CMainWindow ();
-
- protected:
- afx_msg int OnCreate (LPCREATESTRUCT);
- afx_msg void OnSetFocus (CWnd*);
-
- DECLARE_MESSAGE_MAP ()
- };
-
- struct STYLES {
- int nStyle;
- char szStyleName[16];
- };
-